#include <d3d9.h>
#include <d3dx9.h>
#include "Direct3d.h"
#include "sprite.h"
#include "cDayState.h"
#include "cWorld.h"

void cWorld::setPopulation(int new_population)
{
	if(new_population>=0 && new_population<8)
	{
		population=new_population;
	}
}


void cWorld::setDayState(cDayTimeState *new_state)
{
	if(dayState)
		dayState->reset();
	dayState=new_state;
}

